export const routes = [
  {
    path:'/home',
    name:'home',
    component: () => import('@v/home/index.vue'),
    meta: { title: '首页', limit: [1,2,3] },
    children: [
      {
        path:'/hickey',
        name:'hickey',
        component: () => import('@v/Hickey/index.vue'),
      }
    ]
  },
  // 上传
  {
    path: '/upload',
    name: 'upload',
    component: () => import('@v/Upload/index.vue'),
    children: [
      {
        path: 'aliyun',
        name: 'aliyun',
        component: () => import('@v/Upload/children/aliyun/index.vue'),
      },
      {
        path: 'multifile',
        name: 'multifile',
        component: () => import('@v/Upload/children/multifile/index.vue'),
      },
      {
        path: 'largefile',
        name: 'largefile',
        component: () => import('@v/Upload/children/largefile/index.vue'),
      }
    ]
  },
  // 语音
  {
    path: '/voice',
    name: 'voice',
    component: () => import('@v/Voice/index.vue'),
    children: [
      {
        path: 'asr',
        name: 'asr',
        // component: () => import('@v/Voice/children/ASR/index copy 2.vue'),
        component: () => import('@v/Voice/children/ASR/index_封装.vue'),
      },
      {
        path: 'tts',
        name: 'tts',
        component: () => import('@v/Voice/children/TTS/index.vue'),
      },
      {
        path: 'xunfei',
        name: 'xunfei',
        component: () => import('@v/Voice/children/xunfei/index.vue'),
      },
      {
        path: 'xunfei_tts',
        name: 'xunfei_tts',
        component: () => import('@v/Voice/children/Xunfei_tts/index.vue'),
      },
      {
        path: 'base64',
        name: 'base64',
        component: () => import('@v/Voice/children/Base64/index.vue'),
      }
    ]
  },
  {
    path:'/login',
    name:'login',
    component: () => import('@v/login/index.vue'),
    meta: { title: '登录', limit: [1,2,3] }
  },
  {
    path:'/register',
    name:'register',
    component: () => import('@v/Register/index.vue'),
    meta: { title: '注册', limit: [1,2,3] }
  },
  {
    path:'/styles',
    name:'styles',
    component: () => import('@v/Styles/index.vue'),
    meta: {limit: [1,2,3] },
    children: [
      {
        path: 'loading',
        name: 'loading',
        component: () => import('@v/Styles/children/loading.vue'),
      },
      {
        path: 'card',
        name: 'card',
        component: () => import('@v/Styles/children/Card/index.vue'),
      },
      {
        path: 'CutIco',
        name: 'CutIco',
        component: () => import('@v/Styles/children/CutIco.vue'),
      }
    ]   
  }, 
  // {
  //   path:'/hickey',
  //   name:'hickey',
  //   component: () => import('@v/Hickey/index.vue'),
  //   meta: {limit: [1,2,3] },
  //   children: [
  //     {
  //       path: 'loading',
  //       name: 'loading',
  //       component: () => import('@v/Styles/children/loading.vue'),
  //     },
  //     {
  //       path: 'card',
  //       name: 'card',
  //       component: () => import('@v/Styles/children/card.vue'),
  //     }
  //   ]   
  // }, 
  {
    path:'/notFound',
    name:'notFound',
    component: () => import('@v/NotFound/index.vue'),
    meta: {limit: [1,2,3] }
  }, 
  { path:'/', redirect:'/home' },
  { path:'/:pathMatch(.*)*', redirect:'/notFound' },
  { path:'/:pathMatch(.*)', redirect:'/notFound' }

]
